Question 1: So you want (element 0 + element 1) / 2, (element 1 + element 2) / 2, ... etc. We make two lists: one of every element except the first, ... ... <看更多>
Search
Search
Question 1: So you want (element 0 + element 1) / 2, (element 1 + element 2) / 2, ... etc. We make two lists: one of every element except the first, ... ... <看更多>
... <看更多>
Welcome to programming :) I did not understand your question first, then I realized that python might be your first language. In that case ... ... <看更多>
A list element can be any Python object, including numbers, strings, ... s = 0 # sum for y in data: # loop over "rows" (first index) in data s += y[m] # add ... ... <看更多>